﻿#include "FITKAFLRSurfaceMeshModel.h"

#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
#include "FITK_Interface/FITKInterfaceModel/FITKAbstractGeoModel.h"
#include "FITK_Interface/FITKInterfaceGeometry/FITKGeoCommandList.h"
#include "FITK_Interface/FITKInterfaceGeometry/FITKAbsGeoCommand.h"
#include "FITK_Component/FITKGeoCompOCC/FITKAbstractOCCModel.h"
#include "FITK_Component/FITKOFDictWriter/FITKOFDictWriterIO.h"
#include "FITK_Kernel/FITKAppFramework/FITKComponents.h"
#include "FITK_Kernel/FITKCore/FITKDirFileTools.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFGeometryData.h"
#include "FITK_Component/FITKOFDriver/FITKOFInputInfo.h"
#include "FITK_Kernel/FITKAppFramework/FITKProgramTaskManager.h"
#include <QApplication>

namespace AFLR
{
	double FITKAFLRSurfaceMeshModel::getGlobalSize() const {
		return _globalSize;
	}

	int FITKAFLRSurfaceMeshModel::getGeoIndexFarFidldId() const
	{
		return _geoIndexFarFidldId;
	}

	int FITKAFLRSurfaceMeshModel::getFarfieldId() const {
		return _farfieldId;
	}

	double FITKAFLRSurfaceMeshModel::getFarfieldRefinementFactor() const {
		return _farfieldRefinementFactor;
	}

	QVector<LocalRefinement> FITKAFLRSurfaceMeshModel::getTableWidgetValue() const {
		return _tableWidgetValue;
	}

	bool FITKAFLRSurfaceMeshModel::getGenerateBL() const {
		return _generateBL;
	}

	BLGridType FITKAFLRSurfaceMeshModel::getBLGridType()
	{
		return _gridType;
	}

	double FITKAFLRSurfaceMeshModel::getFirstLayerThickness() const {
		return _firstLayerThickness;
	}

	double FITKAFLRSurfaceMeshModel::getGeometricGrowthRate() const {
		return _geometricGrowthRate;
	}

	double FITKAFLRSurfaceMeshModel::getBLThickness() const {
		return _blThickness;
	}

	double FITKAFLRSurfaceMeshModel::getLayers() const {
		return _layers;
	}

	int FITKAFLRSurfaceMeshModel::getGeoIndexBoundaryLayerFaces() const
	{
		return _geoIndexBoundaryLayerFaces;
	}

	int FITKAFLRSurfaceMeshModel::getBoundaryLayerFaces() const {
		return _boundaryLayerFaces;
	}

	int FITKAFLRSurfaceMeshModel::getGeoIndexIntersectingFaces() const
	{
		return _geoIndexIntersectingFaces;
	}

	int FITKAFLRSurfaceMeshModel::getIntersectingFaces() const {
		return _intersectingFaces;
	}

	void FITKAFLRSurfaceMeshModel::setGlobalSize(const double &size) {
		_globalSize = size;
	}

	void FITKAFLRSurfaceMeshModel::setGeoIndexFarFidldId(const int & id)
	{
		_geoIndexFarFidldId = id;
	}

	void FITKAFLRSurfaceMeshModel::setFarfieldId(const int &id) {
		_farfieldId = id;
	}

	void FITKAFLRSurfaceMeshModel::setFarfieldRefinementFactor(const double &factor) {
		_farfieldRefinementFactor = factor;
	}

	void FITKAFLRSurfaceMeshModel::setTableWidgetValue(const QVector<LocalRefinement> &value) {
		_tableWidgetValue = value;
	}

	void FITKAFLRSurfaceMeshModel::setGenerateBL(const bool &generate) {
		_generateBL = generate;
	}

	void FITKAFLRSurfaceMeshModel::setBLGridType(BLGridType type) {
		_gridType = type;
	}

	void FITKAFLRSurfaceMeshModel::setFirstLayerThickness(const double &thickness) {
		_firstLayerThickness = thickness;
	}

	void FITKAFLRSurfaceMeshModel::setGeometricGrowthRate(const double &rate) {
		_geometricGrowthRate = rate;
	}

	void FITKAFLRSurfaceMeshModel::setBLThickness(const double &thickness) {
		_blThickness = thickness;
	}

	void FITKAFLRSurfaceMeshModel::setLayers(const double &layers) {
		_layers = layers;
	}

	void FITKAFLRSurfaceMeshModel::setGeoIndexBoundaryLayerFaces(const int & faces)
	{
		_geoIndexBoundaryLayerFaces = faces;
	}

	void FITKAFLRSurfaceMeshModel::setBoundaryLayerFaces(const int &faces) {
		_boundaryLayerFaces = faces;
	}

	void FITKAFLRSurfaceMeshModel::setGeoIndexIntersectingFaces(const int & faces)
	{
		_geoIndexIntersectingFaces = faces;
	}

	void FITKAFLRSurfaceMeshModel::setIntersectingFaces(const int &faces) {
		_intersectingFaces = faces;
	}

	void FITKAFLRSurfaceMeshModel::setCurrentFarfieldIdComboBoxIndex(const int &value) {
		_currentFarfieldIdComboBoxIndex = value;
	}

	int FITKAFLRSurfaceMeshModel::getCurrentFarfieldIdComboBoxIndex() const {
		return _currentFarfieldIdComboBoxIndex;
	}

	int FITKAFLRSurfaceMeshModel::getCurrentBoundaryLayerFacesComboBoxIndex() const {
		return _currentBoundaryLayerFacesComboBoxIndex;
	}

	void FITKAFLRSurfaceMeshModel::setCurrentBoundaryLayerFacesComboBoxIndex(const int& index) {
		_currentBoundaryLayerFacesComboBoxIndex = index;
	}

	int FITKAFLRSurfaceMeshModel::getCurrentIntersectingFacesComboBoxIndex() const {
		return _currentIntersectingFacesComboBoxIndex;
	}

	void FITKAFLRSurfaceMeshModel::setCurrentIntersectingFacesComboBoxIndex(const int& index) {
		_currentIntersectingFacesComboBoxIndex = index;
	}

	QHash<QString , int> FITKAFLRSurfaceMeshModel::getDataComboBoxIndexHash() const {
		return _dataComboBoxIndexHash;
	}

	void FITKAFLRSurfaceMeshModel::setDataComboBoxIndexHash(const QHash<QString , int>& hash) {
		_dataComboBoxIndexHash = hash;
	}
	QHash<QString , QString> FITKAFLRSurfaceMeshModel::getDataLineEditHash() const {
		return _dataLineEditHash;
	}

	void FITKAFLRSurfaceMeshModel::setDataLineEditHash(const QHash<QString , QString>& hash) {
		_dataLineEditHash = hash;
	}

	QHash<QString , bool> FITKAFLRSurfaceMeshModel::getDataCheckBoxHash() const
	{
		return _dataCheckBoxHash;
	}

	void FITKAFLRSurfaceMeshModel::setDataCheckBoxHash(const QHash<QString , bool>& hash) {
		_dataCheckBoxHash = hash;
	}

}



